package com.example.demo.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.example.demo.model.ReadRecord;

public interface ReadRecordRepository extends JpaRepository<ReadRecord, Long>, JpaSpecificationExecutor<ReadRecord>  {

	@Query("from ReadRecord r where r.uID = ?1 and r.nID = ?2")
	ReadRecord findByNID(Long uID, Long nID);

}
